package com.oig.common.constants;

public class CommonConstants {
    private CommonConstants(){}

    /**
     * 成功标记
     */
    public final static Integer SUCCESS = 0;
    public final static String SUCCESS_S = "S";

    /**
     * 失败标记
     */
    public final static Integer FAIL = 1;


    /**
     * 编码
     */
    public final static String UTF8 = "UTF-8";

    /**
     * JSON 资源
     */
    public final static String APPLICATION_JSON_UTF8_VALUE = "application/json; charset=utf-8";

    public final static String GANT_TYPE_REFRESH = "refresh_token";
    public final static String GANT_TYPE_U_CODE = "user_code" ;
    public final static String ACCESS_TOKEN     = "access_token";

    public final static String AUTHORIZATION = "Authorization" ;

    public final static String BEARER_TYPE = "Bearer " ;

    /**
     * header 自定义扩展参数 加systemId和resourceId 先简单点直接拼字符串 systemId;resourceId
     */
    public final static String EXPAND_DATA = "X-Expand-Data";
    /**
     * header 自定义扩展参数 X-Trace-Id 存 traceId
     */
    public final static String EXPAND_TRACE_ID="X-Trace-Id";
    /**
     * 跟踪ID，用于一次请求或执行方法时，产生的各种日志间的数据关联 MDC的key
     */
    public final static String TRACE_ID = "traceId";

    /**
     * 连接符
     */
    public final static String DOT_STR = "." ;

    /**
     * 下划线
     */
    public final static String UNDERSCORE_STR = "_" ;


    /**
     * 加号
     */
    public final static String PLUS_STR = "+" ;
    /**
     * 减号
     */
    public final static String MINUS_STR = "-" ;
    /**
     * 乘号
     */
    public final static String MUlTI_STR = "*" ;

    /**
     * 除号
     */
    public final static String DIVI_STR = "/" ;

    /**
     * 等号
     */
    public final static String EQ_STR = "=" ;

    /**
     * 冒号
     */
    public final static String COLON_STR = ":" ;


    /**
     * 分隔符“;”
     */
    public final static String SPLIT_STR = ";";

    /**
     * 分隔符(中文)“；”
     */
    public final static String SPLIT_CHINA_STR="；";


    /**
     * 分隔符“,”
     */
    public final static String SEMICOLON_STR = "," ;

    /**
     * 分隔符“|”
     */
    public final static String RADICAL = "|";

    public static final String SEND_ALL = "@all";

    /**
     * 分隔符（中文）“，”
     */
    public final static String SEMICOLON_CHINA_STR = "，";

    public final static String LEFT_BIG_BOAST = "{";
    public final static String RIGTH_BIG_BOAST = "}";
    public final static String LEFT_MIDDLE_BOAST = "[";
    public final static String RIGHT_MIDDLE_BOAST = "]";

    public final static String LEFT_PARENTHESIS = "(";
    public final static String RIGHT_PARENTHESIS = ")";

    public final static String DEF_MIX_STR="00" ;

    public final static String DEF_ZERO_STR = "0";

    /**
     * & 分隔符
     */
    public static final String AND_STR = "&";
}